<html>
    <style>
* { font-family: Verdana; font-size: 11px; }
.home-squares { width: 300px; display: block; padding: 3px; border: 1px solid #EBEBEB; float: left; margin-right: 12px; margin-bottom: 10px; }
.home-headings { height: 20px; border: 1px solid #9db7c3; background-color: #bbcfd8;  width: 288px; color: #fff; font-weight: bold; padding: 5px 0px 0px 10px;}
.random-image { width: 70px; height: 80px; border: 5px solid #F8F4E0; float: left; display: inline; margin-right: 10px; }
.random { width: 280px; float: left; margin-top: 10px; padding-left: 5px; }
.both { clear: both; }
.home-post-wrap { width: 593px; padding: 10px; margin-right: 13px; margin-bottom: 10px; float: left; border: 1px solid #EBEBEB; }
.thumbnail-div { border: 5px solid #F8F4E0; width: 90px; height: 150px; float: left; }
.post-content { width: 475px; float: right; margin-top: 5px; }
.titles { font-weight: normal; font-size: 24px; text-decoration: none; margin-top: 0px; }
#back { width: 100% }
#wrapper { width: 960px; margin: 0 auto; }
a:link { color: #000000; }
a:visited { color: #9C9C9C; }
/* #habr { background: url('/images/habrahabr_logo_s.png') no-repeat; background-position: right bottom;}
#shevchuk { background: url('/images/shevchuk.jpg') no-repeat; background-position: right bottom;}
#zendcast { background: url('/images/zendcast.png') no-repeat; background-position: right bottom;}
*/
#left { width: 320px; float: left;}
#center { width: 320px; float: left;}
#right { width: 320px; float: right;}



    </style>
    <div id="wrapper">
        <div id="left">
            <div class="home-squares">
            <div class="home-headings">Новости</div>            
  
            </div>
        </div>
        <div id="center">

            <div class="home-squares">
                <div class="home-headings">Реклама от Google</div>
                <div class="random">
             
                </div>
          

            </div>

            <div class="home-squares">
                <div class="home-headings">Хабрахабр</div>
                <?foreach($this->habr as $key => $entity):?>
                <? if($key>10) break; ?>
                <div class="random">
                    <a href="<?= $entity->getLink()?>"><?= $entity->getTitle()?></a>
                </div>
                <?endforeach;?>
            </div>


            

        </div>
        <div id="right">
            <div class="home-squares">
                <div class="home-headings">Статьи</div>
                <div class="random">
                    <?foreach($this->articlesList as $oneArticle):?>
                            <?=$this->partial('/light_theme/oneArticle.phtml', array('oneArticle'=>$oneArticle))?>
                    <?endforeach;?>
                </div>
            </div>

        </div>

    </div>
</html>
